import RenderAuthorize from '@/components/Authorized';
import { getAuthority } from './authority';
/* eslint-disable eslint-comments/disable-enable-pair */

/* eslint-disable import/no-mutable-exports */
// 此过程为把用户权限更新到最新
let Authorized = RenderAuthorize(getAuthority()); // Reload the rights component
// 重新更新用户权限信息
const reloadAuthorized = () => {
  const authority = getAuthority();
  Authorized = RenderAuthorize(authority);
};

export { reloadAuthorized };
export default Authorized;
